<div class="navButtonsTop rounded-corners">
	<div class="left"><label class="subtitle">${fieldValue(bean: noteInstance, field: "title")}</label></div>
	<div class="right"><label class="subtitle">${fieldValue(bean: noteInstance, field: "createdBy.alias")}</label></div>
</div>

<div class="content ${noteInstance.disabled ? 'disable' : ''}">
	${noteInstance?.text}
</div>

<div class="navButtons rounded-corners" style="position:relative;">
<!--	<usr:isAdmin>-->
		<div class="left">
			<g:form controller="note" action="edit">
				<g:hiddenField name="id" value="${noteInstance?.id}" />
				<g:submitButton class="edit" name="edit" value="${message(code:'default.button.edit')}" />
			</g:form>
	    	<g:if test="${fieldValue(bean: noteInstance, field: 'disabled') == 'false'}">
	    		<g:form controller="note" action="disable">
	        		<g:hiddenField name="id" value="${noteInstance?.id}" />
					<g:submitButton class="disable" name="disable" value="${message(code:'default.button.disable')}" />
				</g:form>
			</g:if>
	       	<g:else>
	        	<g:form controller="note" action="enable">
	        		<g:hiddenField name="id" value="${noteInstance?.id}" />
					<g:submitButton class="enable" name="enable" value="${message(code:'default.button.enable')}" />
				</g:form>                   		
			</g:else>
		</div>
		
		<div class="right">
			<g:form controller="note" action="delete">
				<g:hiddenField name="id" value="${noteInstance?.id}" />
				<g:submitButton class="delete" name="delete" value="${message(code:'default.button.delete')}" onclick="return confirm('${message(code:'default.delete.confirm.message')}');"/>
			</g:form>
		</div>
<!--	</usr:isAdmin>-->
</div>
